#include "gameobject.h"
#include<QGraphicsScene>
#include"gameobjectpool.h"

GameObject::GameObject(QObject *parent)
{}

void GameObject::GameObjectDelete(QGraphicsScene* _scene)
{
    _scene->removeItem(this);//移除场景
    GameObjectPool::Instance()->RecoveryGameObject(this);//回收对象

}
